package com.solution.decorator;

import org.displaytag.decorator.TableDecorator;

import com.solution.model.CategoryType;

public class CategoryDecorator extends TableDecorator{

	public String getActionEdit() {
		CategoryType categoryType = (CategoryType)getCurrentRowObject();
		String categoryTypeId = categoryType.getId()+"";
		return "<a href=\"javascript:fnEditViewCategoryDetails('"+ categoryTypeId + "','Edit')\">Edit</a>"; 
	}
	
	public String getActionView() {
		CategoryType categoryType = (CategoryType)getCurrentRowObject();
		String categoryTypeId = categoryType.getId()+"";
		return "<a href=\"javascript:fnEditViewCategoryDetails('"+ categoryTypeId + "','View')\">View</a>"; 
	}
}
